#include <iostream>

using namespace std;

int main()
{
    int *pi = new int(10);
    cout << pi << endl
         << *pi << endl;
    delete pi;
    cout << pi << endl
         << *pi << endl;

    return 0;
}